package com.mhl.entity;

public class Message {
    // 用户ID，这个要保留，是联系对应消息用户的身份确认凭证
    private String userId;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    // 用户头像url
    private String url;
    // 用户昵称
    private String username;
    // 最新的消息
    private String latestMsg;

    // 构造方法
    public Message() {

    }
    public Message(String userId, String url, String username, String latestMsg) {
        this.userId = userId;
        this.url = url;
        this.username = username;
        this.latestMsg = latestMsg;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getLatestMsg() {
        return latestMsg;
    }

    public void setLatestMsg(String latestMsg) {
        this.latestMsg = latestMsg;
    }
}

